package com.yuanfeng.business.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yuanfeng.business.dto.ShopRecordDTO;
import com.yuanfeng.business.entity.ShopRecordEntity;
import com.yuanfeng.business.mapper.ShopRecordMapper;
import com.yuanfeng.business.service.ShopRecordService;
import com.yuanfeng.commoms.util.ResponseResult;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.List;

/**
 *
 */
@Service
public class ShopRecordServiceImpl extends ServiceImpl<ShopRecordMapper, ShopRecordEntity>
    implements ShopRecordService{

    @Override
    public ResponseResult queryShopRegist(ShopRecordDTO param) throws IOException {
        List<ShopRecordEntity> list=this.baseMapper.selectList(new LambdaQueryWrapper<ShopRecordEntity>()
                                        .eq(ShopRecordEntity::getActivityId,param.getActivityId()));
        return ResponseResult.success(list);
    }
}




